package com.kky.pp.activity.member

import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.RecyclerView
import com.gyf.immersionbar.ImmersionBar
import com.kky.pp.App
import com.kky.pp.R
import com.kky.pp.base.TitleMvpBaseActivity
import com.kky.pp.databinding.ActivityMemberSubscriptionBinding

/**
 * 会员订阅
 */
class MemberSubscriptionActivity : TitleMvpBaseActivity<MemberSubscriptionContract.View, MemberSubscriptionPresenter,ActivityMemberSubscriptionBinding>(ActivityMemberSubscriptionBinding::inflate),
    MemberSubscriptionContract.View {

    override fun setFullScreen(): Boolean {
        return true
    }
    override fun bindLayout(): Int {
        return R.layout.activity_member_subscription
    }


    override fun setTitle(): String {
        return App.app?.getString(R.string.premium)!!
    }

    override fun initView() {
    }

    override fun onResume() {
        super.onResume()
        ImmersionBar.with(mActivity).statusBarDarkFont(false).init()
    }

    override val outsideContainer: ConstraintLayout
        get() = viewBinding.outsideContainer
    override val conVipBuyTopContainers: ConstraintLayout
        get() = viewBinding.conVipBuyTopContainer
    override val txtVipBuyTitles: TextView
        get() = viewBinding.txtVipBuyTitle
    override val txtVipBuyContents: TextView
        get() = viewBinding.txtVipBuyContent
    override val txtVipBuyDates: TextView
        get() = viewBinding.txtVipBuyDate
    override val txtVipBuyDescTitle: TextView
        get() = viewBinding.txtVipBuyDescTitle
    override val conVipBuyContainers: ConstraintLayout
        get() = viewBinding.conVipBuyContainer
    override val conVipBuyQuarterContainers: ConstraintLayout
        get() = viewBinding.conVipBuyQuarterContainer
    override val txtVipBuyQuarterTitles: TextView
        get() = viewBinding.txtVipBuyQuarterTitle
    override val txtVipBuyQuarterNumbers: TextView
        get() = viewBinding.txtVipBuyQuarterNumber
    override val txtVipBuyQuarterNames: TextView
        get() = viewBinding.txtVipBuyQuarterName
    override val txtVipBuyQuarterDiscountedPrices: TextView
        get() = viewBinding.txtVipBuyQuarterDiscountedPrice
    override val conVipBuyMonthlyContainers: ConstraintLayout
        get() = viewBinding.conVipBuyMonthlyContainer
    override val txtVipBuyMonthlyTitles: TextView
        get() = viewBinding.txtVipBuyMonthlyTitle
    override val txtVipBuyMonthlyNumbers: TextView
        get() = viewBinding.txtVipBuyMonthlyNumber
    override val txtVipBuyMonthlyNames: TextView
        get() = viewBinding.txtVipBuyMonthlyName
    override val txtVipBuyMonthlyDiscountedPrices: TextView
        get() = viewBinding.txtVipBuyMonthlyDiscountedPrice
    override val conVipBuyWeeksContainers: ConstraintLayout
        get() = viewBinding.conVipBuyWeeksContainer
    override val txtVipBuyWeeksNumbers: TextView
        get() = viewBinding.txtVipBuyWeeksNumber
    override val txtVipBuyWeeksNames: TextView
        get() = viewBinding.txtVipBuyWeeksName
    override val txtVipBuyWeeksDiscountedPrices: TextView
        get() = viewBinding.txtVipBuyWeeksDiscountedPrice
    override val rvVipBuyEquityLists: RecyclerView
        get() = viewBinding.rvVipBuyEquityList
    override val txtVipBuyActions: TextView
        get() = viewBinding.txtVipBuyAction
    override val txtPaymentProtocol: TextView
        get() = viewBinding.txtPaymentProtocol
    override val linearVipBuyBottomContainers: LinearLayout
        get() = viewBinding.linearVipBuyBottomContainer
    override val memberActionBuy: TextView
        get() = viewBinding.memberActionBuy

    override val tvMiddleTitle: TextView?
        get() = viewBinding.viewTitle.tvMiddleTitle
    override val tvRightTitle: TextView?
        get() = viewBinding.viewTitle.tvRightTitle
    override val ivLeftImage: ImageView?
        get() = viewBinding.viewTitle.ivBackIcon
    override val viewStatusHeight: View?
        get() = viewBinding.viewTitle.viewStatusHeight

}